<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!--<!DOCTYPE html>-->
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
        <title>资产管理系统</title>
        <link rel="stylesheet" href="css/login.css">
        <link rel="stylesheet" href="layui/css/layui.css">
    </head>
    
    <body class="on-start document-loaded">
        <main>
            <form class="form" action="${pageContext.request.contextPath}/userServlet?flag=login" method="post">
                <div class="form__cover">
                </div>
                <div class="form__loader">
                    <div class="spinner active">
                        <svg class="spinner__circular" viewBox="25 25 50 50">
                            <circle class="spinner__path" cx="50" cy="50" r="20" fill="none" stroke-width="4" stroke-miterlimit="10">
                            </circle>
                        </svg>
                    </div>
                </div>
                <div class="form__content">
                    <br>
                    <h1>
                        登录
                    </h1>
                    <br>
                    <div class="styled-input">
                        <input type="text" class="styled-input__input" name="account">
                        <div class="styled-input__placeholder">
                            <span class="styled-input__placeholder-text"><span class="letter">账</span><span class="letter">号</span></span>
                        </div>
                        <div class="styled-input__circle">
                        </div>
                    </div>
                    <div class="styled-input">
                        <input type="password" class="styled-input__input" name="pwd">
                        <div class="styled-input__placeholder">
                            <span class="styled-input__placeholder-text"><span class="letter">密</span><span class="letter">码</span></span>
                        </div>
                        <div class="styled-input__circle">
                        </div>
                    </div>
                    <button type="submit" class="styled-button">
                        <span class="styled-button__real-text-holder">
                            <span class="styled-button__real-text">
                                登录
                            </span>
                            <span class="styled-button__moving-block face">
                                <span class="styled-button__text-holder">
                                    <span class="styled-button__text">
                                        登录
                                    </span>
                                </span>
                            </span>
                            <span class="styled-button__moving-block back">
                                <span class="styled-button__text-holder">
                                    <span class="styled-button__text">
                                        登录
                                    </span>
                                </span>
                            </span>
                        </span>
                    </button>
                    <a href="register.jsp">
                    <button type="button" class="styled-button">
                        <span class="styled-button__real-text-holder">
                            <span class="styled-button__real-text">
                                注册
                            </span>
                            <span class="styled-button__moving-block face">
                                <span class="styled-button__text-holder">
                                    <span class="styled-button__text">
                                        注册
                                    </span>
                                </span>
                            </span>
                            <span class="styled-button__moving-block back">
                                <span class="styled-button__text-holder">
                                    <span class="styled-button__text">
                                        注册
                                    </span>
                                </span>
                            </span>
                        </span>
                    </button>
                    </a>
                </div>
            </form>
        </main>
        <script src="https://cdn.bootcdn.net/ajax/libs/layui/2.5.7/layui.min.js"></script>
        <script src="js/login.js"></script>
        <script defer>
            var userMsg = '<%=request.getAttribute("msg")%>';
            if (userMsg!=null && userMsg!='' && userMsg!=undefined && userMsg!='null') {
                layui.use('layer', function(){
                    var layer = layui.layer;
                    layer.msg(userMsg);
                });
            }
        </script>
	</body>
</html>